<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="language" content="en" />

		<?php if (!YII_DEBUG): ?>
			<link rel="stylesheet" type="text/css" media="all"
				  href="http://fonts.googleapis.com/css?family=Salsa" />
			<?php
			$hrefs = array(
				'http://fonts.googleapis.com/css?',
				'family=Droid+Serif:400,400italic,700,700italic',
			);
			?>
			<link rel='stylesheet' type='text/css' media="all"
				  href='<?php echo implode('', $hrefs); ?>' />
		<?php endif; ?>
		
		<?php $baseUrl = Yii::app()->request->baseUrl; ?>
		<!-- blueprint CSS framework -->
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $baseUrl; ?>/css/screen.css"
			  media="screen, projection" />
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $baseUrl; ?>/css/print.css"
			  media="print" />
		<!--[if lt IE 8]>
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $baseUrl; ?>/css/ie.css"
			  media="screen, projection" />
		<![endif]-->
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $baseUrl; ?>/css/buttons/screen.css"
			  media="screen, projection" />

		<?php $assetsUrl = Yii::app()->assetsUrl; ?>
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $baseUrl; ?>/css/main.css" />
		<link rel="stylesheet" type="text/css" media="screen, projection, print"
			  href="<?php echo $assetsUrl; ?>/css/typography.css" />
		<link rel="stylesheet" type="text/css" media="screen"
			  href="<?php echo $assetsUrl; ?>/classic/css/main.css" />
		<link rel="stylesheet" type="text/css" media="print"
			  href="<?php echo $assetsUrl; ?>/classic/css/print.css" />
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $baseUrl; ?>/css/form.css" />
		<link rel="stylesheet" type="text/css"
			  href="<?php echo $assetsUrl; ?>/css/form.css" />
		
		<?php
		$path = Yii::app()->request->baseUrl . '/images/saori.ico';
		$cs = Yii::app()->clientScript;
		$cs->registerLinkTag("shortcut icon", "image/x-icon", $path);
		?>
		
		<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	</head>

	<body>
		
		<?php
		if (YII_DEBUG) {
			$config = array(
				'text'=>'DEVELOPMENT',
				'position'=>'right',
			);
			$this->widget('ext.environmentindicator.ei', $config);
		}
		?>

		<div class="container" id="page">

			<div id="header">
				<div id="logo">
					<?php echo CHtml::encode(Yii::app()->name); ?>
				</div>
			</div><!-- header -->

			<div id="main-menu">
				<?php
				$properties = array('items'=>Yii::app()->menu);
				$this->widget('ext.emenu.EMenu', $properties);
				?>
				<div class="clear"></div>
			</div><!-- main-menu -->
			
			
			<?php if (isset($this->breadcrumbs)): ?>
				<?php
				$this->widget('zii.widgets.CBreadcrumbs',
					array(
					'links'=>$this->breadcrumbs,
				));
				?><!-- breadcrumbs -->
			<?php endif ?>

			<?php echo $content; ?>

			<div class="clear"></div>

			<div id="footer">
				<div id="credit">
					Copyright &copy; 2013 by
					<?php echo Yii::app()->params['company']; ?>.
					All Rights Reserved.
					<?php echo Yii::powered(); ?>
				</div>
			</div><!-- footer -->

		</div><!-- page -->

	</body>
</html>

<?php
$assetsUrl = Yii::app()->assetsUrl;
$cs = Yii::app()->clientScript;
$media = "screen, projection, print";
$cs->registerCssFile("$assetsUrl/css/typography.css", $media);
$media = "screen, projection";
$cs->registerCssFile("$assetsUrl/classic/css/main.css", $media);
$cs->registerCssFile("$assetsUrl/css/form.css", $media);
$cs->registerCssFile("$assetsUrl/classic/css/form.css", $media);
$media = "print";
$cs->registerCssFile("$assetsUrl/classic/css/print.css", $media);
?>